/*
 * @(#)CustomerService.java 创建于 2014年3月14日 
 * 
 * Copyright (c) 2013-2014 by Drow.  
 *
 */
package com.hangxin.basic.service;



import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hangxin.basic.model.Customer;
import com.hangxin.commons.service.BasicService;
import com.hangxin.commons.util.PageModel;

@Service
public interface CustomerService extends BasicService
{
	//添加客户信息
	public int customerAdd(Customer customer);
	//客户信息管理
	public PageModel customerManage(PageModel pageModel,String ccode,String cname,String cnum,String cadtel,String caccount);
	//检测客户名称是否存在
	public Integer checkName(String cname,String content,Long id);
	//查询客户信息
	public Map<String,Object> customerFind(Long id);
	//编辑修改客户信息
	public void customerEdit(Customer customer);
	//删除客户
	public Integer customerDel(Long id);
	public List<Map<String , Object>> findCustomers(String name);
	public List<Map<String , Object>> findCustomer(String name);
	@Transactional
	public Integer custImportSave(String strname);
}
